package com.demo.config;


import com.demo.web.SampleResource;
import jakarta.ws.rs.ApplicationPath;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.context.annotation.Configuration;

/**
 * Jersey配置类，用来注册Jersey资源类
 */
@ApplicationPath("/jersey")
@Configuration
public class JerseyConfig extends ResourceConfig {

   public JerseyConfig () {
       register(SampleResource.class);
   }

}
